import request from '@/utils/request'

// 查询门店分布所在城市列表
export function listStoreCitys(query) {
  return request({
    url: '/store/storeCitys/list',
    method: 'get',
    params: query
  })
}

// 查询门店分布所在城市详细
export function getStoreCitys(id) {
  return request({
    url: '/store/storeCitys/' + id,
    method: 'get'
  })
}

// 新增门店分布所在城市
export function addStoreCitys(data) {
  return request({
    url: '/store/storeCitys',
    method: 'post',
    data: data
  })
}

// 修改门店分布所在城市
export function updateStoreCitys(data) {
  return request({
    url: '/store/storeCitys',
    method: 'put',
    data: data
  })
}

// 删除门店分布所在城市
export function delStoreCitys(id) {
  return request({
    url: '/store/storeCitys/' + id,
    method: 'delete'
  })
}
